package com.yangbwe.Springtest.autowired;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;
import java.net.ServerSocket;
import java.util.concurrent.ExecutorService;
import java.net.Socket;
@Slf4j
public class test {
    public static void main(String[] args) throws IOException {
        String config="Spring/autowired/s_s.xml";
        ApplicationContext at=new ClassPathXmlApplicationContext(config);
        Student myStudnet = (Student) at.getBean("MyStudnet");
        String name = myStudnet.getName();

        System.out.println(myStudnet)   ;
        System.out.println(name);

        ServerSocket server = new ServerSocket(100);
        Socket socket = server.accept();

    }
}
